﻿using FreeSql.DatabaseModel;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.Main
{

    [JsonObject(MemberSerialization.OptIn), Table(Name = "t_AlarmStandard", DisableSyncStructure = true)]
    public partial class TAlarmStandard
    {

        [JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }

        [JsonProperty, Column(Name = "deviceId")]
        public long? DeviceId { get; set; }

        [JsonProperty, Column(Name = "field", StringLength = -2)]
        public string Field { get; set; }

        [JsonProperty, Column(Name = "standard", DbType = "decimal(18,2)")]
        public decimal? Standard { get; set; }

        [JsonProperty, Column(StringLength = -2)]
        public string TerminalId { get; set; }

    }

}
